-
Notifications
You must be signed in to change notification settings - Fork 25
add support to show info about gcloud ssh connections #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
added gcloud and a holder for mosh
rename functions and add functions for detect gcloud connections
return ip, for now only on mosh
Hi @jacostag |
@tony-sol ok, try now |
@@ -1,5 +1,27 @@ | |||
#!/usr/bin/env bash | |||
|
|||
|
|||
get_tmux_option() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated, see scripts/utils/tmux.sh
@@ -54,6 +77,138 @@ __containered_cmd() { | |||
[[ $1 =~ (^|^[[:blank:]]*|/?)docker[[:blank:]] ]] || [[ $1 =~ (^|^[[:blank:]]*|/?)podman[[:blank:]] ]] | |||
} | |||
|
|||
|
|||
get_ssh_user() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugin doesn't parse ssh/config file anymore
ssh_connected() { | ||
local cmd=$(tmux display-message -p "#{pane_current_command}") | ||
[ $cmd = "ssh" ] || [ $cmd = "sshpass" ] | ||
======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid conflicts resolving
Uh oh!
There was an error while loading. Please reload this page.